package cn.wolfcode.luowowo.repository;


import cn.wolfcode.luowowo.domain.StrategyCatalog;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * 攻略持久层接口
 */
@Repository
public interface StrategyCatalogRepository extends MongoRepository<StrategyCatalog, String> {
    
    
    List<StrategyCatalog> findDestNameById(String id);
    
    /**
     * 查询目的地关联的所有分类
     * @param destId
     * @return
     */
    List<StrategyCatalog> findByDestId(String destId);
}
